<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <img src="image/0.png" alt="">
    <script>
        var img = document.querySelector('img')
        var index = 0
        setInterval(function(){
            img.src = 'image/' + index + '.png'
            index ++
            if(index > 35){
                index = 0
            }
        },100)
    </script>
</body>
</html>